/**
 * @file utime64.h
 * @author xy
 * @brief 
 * @version 0.1
 * @date 2024-12-23
 * 
 * @copyright Copyright (c) 2024
 * 
 */

#ifndef UTIME64_H
#define UTIME64_H

#ifdef __cplusplus
extern "C" {
#endif

typedef long long time64_t;

struct utime_s
{
    int tm_sec; /* Seconds.	[0-60] (1 leap second) */
    int tm_min; /* Minutes.	[0-59] */
    int tm_hour; /* Hours.	[0-23] */
    int tm_mday; /* Day.		[1-31] */
    int tm_mon; /* Month.	[0-11] */
    int tm_year; /* Year	- 1900.  */
};

time64_t tm_to_time64(struct utime_s *tm);

int time64_to_tm(struct utime_s *tm, time64_t t);

#ifdef __cplusplus
}
#endif

#endif //UTIME64_H
